const store = {
  namespace: "index", // 命名空间名字，必填
  state: {
    userInfo: {}, // 登录用户的全部信息
  },
  reducers: {
    updateUserInfo(state, { payload }) {
      window.localStorage.setItem("token", payload.token)
      return { ...state, userInfo: payload }
    },

  },
}

export default store
